package com.aqielife.demo.service;

import com.aqielife.demo.entity.City;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author aqie
 * @date 2022/02/04 21:06
 * @desc
 */
public interface CityService {
  default Mono<ServerResponse> helloCity(ServerRequest request) { return null ; };

  /**
   * 获取城市信息
   * @return
   */
  default String getCityInfo() { return ""; };

  default String getCityInfoHistory (String city) { return ""; };

  /**
   * 获取城市奖牌
   * @return
   */
  default String getCityMedal(){ return ""; };

  Mono<City> save(City city);

  Mono<City> findCityById(String id);

  Flux<City> findAllCity();

  Mono<City> modifyCity(City city);

  void deleteCity(String id);
}
